package com.zzg.member.service;

import org.jooq.Schema;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import com.zzg.common.dao.spring.CommonDaoConfig;
import com.zzg.member.jooq.HumanResource;



@SpringBootApplication
@Import({ CommonDaoConfig.class})
public class MemberServiceApplication {
	
	@Bean
	public Schema schema() {
		return HumanResource.HUMAN_RESOURCE_SCHEMA; // jOOQ生成代码的根目录下与数据库同名的类
	}

	public static void main(String[] args) throws Exception {
		// TODO Auto-generated method stub
		SpringApplication.run(MemberServiceApplication.class, args);
		synchronized (MemberServiceApplication.class) {
			MemberServiceApplication.class.wait();
		}
	}

}
